<template>
<div>
    <router-link to="/ShowUserFinaninfo" style="margin-right: 20px;" >用户理财</router-link>
    <router-link to="/ShowUserBorrowMoney" style="margin-right: 20px;" >用户借款</router-link>
    <br>
    <h2 style="text-align: center;">显示项目信息列表</h2>
    <InvestCommon v-slot="info">
        <a href="#" @click="AddUserInvestInfo(info.id)">投资</a>
    </InvestCommon>                
</div>
</template>
    
<script setup lang="ts">
import InvestCommon from '../Invests/InvestCommon.vue'
import { useRouter } from 'vue-router';

    
const router=useRouter();
//通过路由跳转到投资项目信息修改页面
const AddUserInvestInfo=(Iid:number)=>{
    router.push({
        name:"AddUserInvestInfo",
         params:{
            Iid:Iid
        }
    })
}
</script>